package com.example.dormlist.service;

import com.example.dormlist.entity.DormitoryUnit;
import com.example.dormlist.repo.DormitoryUnitRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class DormitoryUnitService {

    private final DormitoryUnitRepository dormitoryUnitRepository;

    public List<DormitoryUnit> findAll() {
        return dormitoryUnitRepository.findAll();
    }


}
